<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl">
			<a class="logo navbar-logo f-l mr-10 hidden-xs" href="{:url('index/index')}">网站管理后台</a>
			<a class="logo navbar-logo-m f-l mr-10 visible-xs" href="{:url('index/index')}">网站管理后台</a>
			<span class="logo navbar-slogan f-l mr-10 hidden-xs">v5.0</span>
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav class="nav navbar-nav">
				<ul class="cl">
					<li class="dropDown dropDown_hover">
						{volist name="pilot_nav" id="vo"}
							<li class="navbar-levelone current" {if $i==1}style="margin-left: 50px;"{/if}>
								<a href="javascript:;">{$vo.name}</a>
							</li>
						{/volist}
						<li>
							<a href="/" target="_blank">网站首页</a>
						</li>
					</li>
				</ul>
			</nav>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					{if $is_empower}
					<li style="cursor:pointer" onclick="shou()">
						<div style="display: flex;height: 30px;margin: 8px;margin-right:25px;background: #047867;border-radius: 5px">
							<img src="__MANAGE__shou1.png" style="height: 100%" alt="">
							<div style="color: #FFFFFF;line-height: 30px;padding:0 5px">已授权</div>
						</div>
					</li>
					{else /}
					<li style="cursor:pointer" onclick="shou()">
						<div style="display: flex;height: 30px;margin: 8px;margin-right:25px;background: #717474;border-radius: 5px">
							<img src="__MANAGE__shou2.png" style="height: 100%" alt="">
							<div style="color: #FFFFFF;line-height: 30px;padding:0 5px">未授权</div>
						</div>
					</li>
					{/if}
					<li>
						<?php echo session('uid')==1 ? '超级管理员' : '管理员'; ?>
					</li>
					<li class="dropDown dropDown_hover">
						<a href="#" class="dropDown_A">{:session('uname')}<i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="{:url('login/out')}">退出</a></li>
						</ul>
					</li>
					<?php 
						$is_comment=false;
						$is_message=false;
						$is_ding=false;
						foreach($pilot_list as $data){
							foreach($data as $v){
								if($v['name']== "反馈留言"){
									$is_message=true;
								}
							}
						} 
					?>
					{if $is_comment}
					<li class="lizhili1">
						<a data-href="{:url('comment/index')}" data-title="评论消息" href="javascript:;" title="评论消息"><span class="badge badge-danger"
							 id="lizhili_ping">评
								<?php if($comment!=0){ echo $comment; } ?></span><i class="Hui-iconfont" style="font-size:18px">&#xe622;</i></a>
					</li>
					{/if}
					{if $is_message}
					<li class="lizhili1" >
						<a data-href="{:url('message/index')}" data-title="留言消息" href="javascript:;" title="留言消息"><span class="badge badge-danger"
							 id="lizhili_liu">留
								<?php if($message!=0){ echo $message; } ?></span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a>
					</li>
					{/if}
					
					<li id="Hui-skin" class="dropDown right dropDown_hover">
						<a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li>
								<a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a>
							</li>
							<li>
								<a href="javascript:;" data-val="blue" title="蓝色">蓝色</a>
							</li>
							<li>
								<a href="javascript:;" data-val="green" title="绿色">绿色</a>
							</li>
							<li>
								<a href="javascript:;" data-val="red" title="红色">红色</a>
							</li>
							<li>
								<a href="javascript:;" data-val="yellow" title="黄色">黄色</a>
							</li>
							<li>
								<a href="javascript:;" data-val="orange" title="橙色">橙色</a>
							</li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
</header>
<style>
	.lizhili1 .badge {
		position: absolute;
		left: 19px;
		top: 4px;
		font-size: 12px;
		font-weight: normal;
		padding: 1px 5px;
</style>
